package cn.lentme.app.component.view.fragments;

import androidx.annotation.LayoutRes;
import androidx.fragment.app.Fragment;

import cn.lentme.app.activity.R;

public class BlankFragment {

    private @LayoutRes int layout;

    private BlankFragment(int layout){
        this.layout = layout;
    }

    public static Fragment newInstance(int layout){
        Fragment fragment = null;
        switch (layout){
            case R.layout.frag_home:
                fragment = new HomeFragment();
                break;
            case R.layout.frag_circles:
                fragment = new CirclesFragment();
                break;
            case R.layout.frag_profile:
                fragment = new ProfileFragment();
                break;
        }
        return fragment;
    }

}
